3.27 \(\int \frac{\cosh (a+\frac{b}{x})}{x^2} \, dx\)

Optimal. Leaf size=13 \[ -\frac{\sinh \left (a+\frac{b}{x}\right )}{b} \]

[Out]

-(Sinh[a + b/x]/b)

________________________________________________________________________________________

Rubi [A]  time = 0.0153976, antiderivative size = 13, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {5321, 2637} \[ -\frac{\sinh \left (a+\frac{b}{x}\right )}{b} \]

Antiderivative was successfully verified.

[In]

Int[Cosh[a + b/x]/x^2,x]

[Out]

-(Sinh[a + b/x]/b)

Rule 5321

Int[((a_.) + Cosh[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Cosh[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Sim
plify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \frac{\cosh \left (a+\frac{b}{x}\right )}{x^2} \, dx &=-\operatorname{Subst}\left (\int \cosh (a+b x) \, dx,x,\frac{1}{x}\right )\\ &=-\frac{\sinh \left (a+\frac{b}{x}\right )}{b}\\ \end{align*}

Mathematica [A]  time = 0.0040761, size = 13, normalized size = 1. \[ -\frac{\sinh \left (a+\frac{b}{x}\right )}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[a + b/x]/x^2,x]

[Out]

-(Sinh[a + b/x]/b)

________________________________________________________________________________________

Maple [A]  time = 0.005, size = 14, normalized size = 1.1 \begin{align*} -{\frac{1}{b}\sinh \left ( a+{\frac{b}{x}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(a+b/x)/x^2,x)

[Out]

-sinh(a+b/x)/b

________________________________________________________________________________________

Maxima [A]  time = 1.11802, size = 18, normalized size = 1.38 \begin{align*} -\frac{\sinh \left (a + \frac{b}{x}\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x)/x^2,x, algorithm="maxima")

[Out]

-sinh(a + b/x)/b

________________________________________________________________________________________

Fricas [A]  time = 1.68785, size = 30, normalized size = 2.31 \begin{align*} -\frac{\sinh \left (\frac{a x + b}{x}\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x)/x^2,x, algorithm="fricas")

[Out]

-sinh((a*x + b)/x)/b

________________________________________________________________________________________

Sympy [A]  time = 1.42341, size = 15, normalized size = 1.15 \begin{align*} \begin{cases} - \frac{\sinh{\left (a + \frac{b}{x} \right )}}{b} & \text{for}\: b \neq 0 \\- \frac{\cosh{\left (a \right )}}{x} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x)/x**2,x)

[Out]

Piecewise((-sinh(a + b/x)/b, Ne(b, 0)), (-cosh(a)/x, True))

________________________________________________________________________________________

Giac [A]  time = 1.26006, size = 36, normalized size = 2.77 \begin{align*} -\frac{e^{\left (a + \frac{b}{x}\right )} - e^{\left (-a - \frac{b}{x}\right )}}{2 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(a+b/x)/x^2,x, algorithm="giac")

[Out]

-1/2*(e^(a + b/x) - e^(-a - b/x))/b